package com.education.welco.service.impl;


import com.education.common.utils.Convert;
import com.education.welco.mapper.LAgreementMapper;
import com.education.welco.pojo.LAgreement;
import com.education.welco.service.ILAgreementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 协议表 服务层实现
 *
 * @author d
 * @date 2020-05-21 10:50:11
 */
@Service
public class LAgreementServiceImpl implements ILAgreementService {

    @Autowired
    private LAgreementMapper lAgreementMapper;

    //查询协议表信息
    @Override
    public LAgreement selectLAgreementById(Integer id) {
        return lAgreementMapper.selectLAgreementById(id);
    }

    // 查询协议表列表
    @Override
    public List<LAgreement> selectLAgreementList(LAgreement lAgreement) {
        return lAgreementMapper.selectLAgreementList(lAgreement);
    }

    // 新增协议表
    @Override
    public int insertLAgreement(LAgreement lAgreement) {
        return lAgreementMapper.insertLAgreement(lAgreement);
    }

    //修改协议表
    @Override
    public int updateLAgreement(LAgreement lAgreement) {
        return lAgreementMapper.updateLAgreement(lAgreement);
    }

    //删除${tableComment}对象
    @Override
    public int deleteLAgreementByIds(String ids) {
        return lAgreementMapper.deleteLAgreementByIds(Convert.toStrArray(ids));
    }
}